
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module ftpssl</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>ftpssl</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/cygdrive/d/[code]/iris-ftp/ftpssl.py">/cygdrive/d/[code]/iris-ftp/ftpssl.py</a></font></td></tr></table>
    <p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="M2Crypto.SSL.html">M2Crypto.SSL</a><br>
</td><td width="25%" valign=top><a href="M2Crypto.ftpslib.html">M2Crypto.ftpslib</a><br>
</td><td width="25%" valign=top><a href="M2Crypto.threading.html">M2Crypto.threading</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="M2Crypto.ftpslib.html#FTP_TLS">M2Crypto.ftpslib.FTP_TLS</a>(<a href="ftplib.html#FTP">ftplib.FTP</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="ftpssl.html#IrisFTPSSL">IrisFTPSSL</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="IrisFTPSSL">class <strong>IrisFTPSSL</strong></a>(<a href="M2Crypto.ftpslib.html#FTP_TLS">M2Crypto.ftpslib.FTP_TLS</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Extension&nbsp;of&nbsp;the&nbsp;default&nbsp;FTP&nbsp;class.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="ftpssl.html#IrisFTPSSL">IrisFTPSSL</a></dd>
<dd><a href="M2Crypto.ftpslib.html#FTP_TLS">M2Crypto.ftpslib.FTP_TLS</a></dd>
<dd><a href="ftplib.html#FTP">ftplib.FTP</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="IrisFTPSSL-__init__"><strong>__init__</strong></a>(self, host<font color="#909090">=None</font>, username<font color="#909090">=None</font>, password<font color="#909090">=None</font>, verbose<font color="#909090">=False</font>)</dt><dd><tt>IrisFTP&nbsp;constructor.<br>
&nbsp;<br>
Arguments:<br>
host&nbsp;--&nbsp;host&nbsp;adress<br>
user&nbsp;--&nbsp;username,&nbsp;password&nbsp;tuple<br>
verbose&nbsp;--&nbsp;enter&nbsp;verbose&nbsp;mode&nbsp;when&nbsp;True</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-connect"><strong>connect</strong></a>(self)</dt><dd><tt>Connect&nbsp;to&nbsp;FTP&nbsp;server&nbsp;using&nbsp;current&nbsp;settings.<br>
&nbsp;<br>
Returns:<br>
Welcome&nbsp;message&nbsp;of&nbsp;the&nbsp;server</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-cwd"><strong>cwd</strong></a>(self, dir)</dt><dd><tt>Change&nbsp;working&nbsp;directory.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-delete"><strong>delete</strong></a>(self, remotefile)</dt><dd><tt>Delete&nbsp;remotefile.<br>
&nbsp;<br>
Arguments:<br>
remotefile&nbsp;--&nbsp;file&nbsp;on&nbsp;the&nbsp;server&nbsp;to&nbsp;remove</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-dir"><strong>dir</strong></a>(self, path<font color="#909090">=None</font>)</dt><dd><tt>Return&nbsp;directory&nbsp;listing.<br>
&nbsp;<br>
Arguments:<br>
path&nbsp;--&nbsp;path&nbsp;to&nbsp;list,&nbsp;default=current&nbsp;dir</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-disconnect"><strong>disconnect</strong></a>(self)</dt><dd><tt>Disconnect&nbsp;from&nbsp;the&nbsp;FTP&nbsp;server.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-exists"><strong>exists</strong></a>(self, path)</dt><dd><tt>Check&nbsp;if&nbsp;path&nbsp;exists.<br>
&nbsp;<br>
Arguments:<br>
path&nbsp;--&nbsp;path&nbsp;to&nbsp;check&nbsp;existence&nbsp;for</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-get"><strong>get</strong></a>(self, remotefile, localfile<font color="#909090">=None</font>, force<font color="#909090">=False</font>)</dt><dd><tt>Download&nbsp;file&nbsp;from&nbsp;remote&nbsp;server.<br>
&nbsp;<br>
Arguments:<br>
remotefile&nbsp;--&nbsp;path&nbsp;to&nbsp;remotefile<br>
localfile&nbsp;--&nbsp;local&nbsp;storage,&nbsp;default&nbsp;is&nbsp;same&nbsp;basename&nbsp;as&nbsp;remotefile<br>
force&nbsp;--&nbsp;force&nbsp;overwrite&nbsp;of&nbsp;localfile,&nbsp;default&nbsp;is&nbsp;False</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-getdir"><strong>getdir</strong></a>(self, remotedir, localdir<font color="#909090">=None</font>, force<font color="#909090">=False</font>, recursive<font color="#909090">=False</font>)</dt><dd><tt>Download&nbsp;remote&nbsp;directory,&nbsp;recursivly&nbsp;if&nbsp;specified.<br>
&nbsp;<br>
Arguments:<br>
remotedir&nbsp;--&nbsp;remotedir&nbsp;to&nbsp;download<br>
localdir&nbsp;--&nbsp;local&nbsp;path&nbsp;to&nbsp;store&nbsp;files<br>
force&nbsp;--&nbsp;overwrite&nbsp;local&nbsp;files(True/False)<br>
recursive&nbsp;--&nbsp;recursive&nbsp;download(True/False)</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-put"><strong>put</strong></a>(self, localfile, remotefile<font color="#909090">=None</font>, force<font color="#909090">=False</font>)</dt><dd><tt>Upload&nbsp;file&nbsp;to&nbsp;remote&nbsp;server.<br>
&nbsp;<br>
Arguments:<br>
localfile&nbsp;--&nbsp;path&nbsp;to&nbsp;localfile<br>
remotefile&nbsp;--&nbsp;remote&nbsp;storage,&nbsp;default&nbsp;is&nbsp;same&nbsp;basename&nbsp;as&nbsp;localfile<br>
force&nbsp;--&nbsp;force&nbsp;overwrite&nbsp;of&nbsp;remotefile,&nbsp;default&nbsp;is&nbsp;False</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-putdir"><strong>putdir</strong></a>(self, localdir, remotedir<font color="#909090">=None</font>, force<font color="#909090">=False</font>, recursive<font color="#909090">=False</font>)</dt><dd><tt>Upload&nbsp;local&nbsp;directory,&nbsp;recursivly&nbsp;if&nbsp;specified.<br>
&nbsp;<br>
Arguments:<br>
localdir&nbsp;--&nbsp;local&nbsp;directory&nbsp;to&nbsp;upload<br>
remotedir&nbsp;--&nbsp;remote&nbsp;location&nbsp;to&nbsp;store&nbsp;files<br>
force&nbsp;--&nbsp;overwrite&nbsp;local&nbsp;files(True/False)<br>
recursive&nbsp;--&nbsp;recursive&nbsp;upload(True/False)</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-rmdir"><strong>rmdir</strong></a>(self, remotedir)</dt><dd><tt>Recursively&nbsp;delte&nbsp;remote&nbsp;directory<br>
&nbsp;<br>
Arguments:<br>
remotedir&nbsp;--&nbsp;remote&nbsp;directory&nbsp;to&nbsp;remove</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-size"><strong>size</strong></a>(self, remotefile)</dt><dd><tt>Get&nbsp;filesize&nbsp;of&nbsp;remotefile.<br>
&nbsp;<br>
Arguments:<br>
remotefile&nbsp;--&nbsp;file&nbsp;on&nbsp;the&nbsp;server&nbsp;to&nbsp;check&nbsp;size&nbsp;of</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-time"><strong>time</strong></a>(self, remotefile)</dt><dd><tt>Get&nbsp;creation&nbsp;time&nbsp;of&nbsp;remotefile&nbsp;in&nbsp;seconds&nbsp;since&nbsp;Epoch.<br>
&nbsp;<br>
Arguments:<br>
remotefile&nbsp;--&nbsp;remotefile&nbsp;to&nbsp;get&nbsp;creation&nbsp;time&nbsp;of</tt></dd></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>connected</strong> = False</dl>

<dl><dt><strong>dirlist</strong> = []</dl>

<dl><dt><strong>host</strong> = None</dl>

<dl><dt><strong>password</strong> = None</dl>

<dl><dt><strong>port</strong> = 21</dl>

<dl><dt><strong>username</strong> = None</dl>

<dl><dt><strong>verbose</strong> = None</dl>

<dl><dt><strong>welcome</strong> = None</dl>

<hr>
Methods inherited from <a href="M2Crypto.ftpslib.html#FTP_TLS">M2Crypto.ftpslib.FTP_TLS</a>:<br>
<dl><dt><a name="IrisFTPSSL-auth_ssl"><strong>auth_ssl</strong></a>(self)</dt><dd><tt>Secure&nbsp;the&nbsp;control&nbsp;connection&nbsp;per&nbsp;AUTH&nbsp;SSL,&nbsp;aka&nbsp;AUTH&nbsp;TLS-P.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-auth_tls"><strong>auth_tls</strong></a>(self)</dt><dd><tt>Secure&nbsp;the&nbsp;control&nbsp;connection&nbsp;per&nbsp;AUTH&nbsp;TLS,&nbsp;aka&nbsp;AUTH&nbsp;TLS-C.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-ntransfercmd"><strong>ntransfercmd</strong></a>(self, cmd, rest<font color="#909090">=None</font>)</dt><dd><tt>Initiate&nbsp;a&nbsp;data&nbsp;transfer.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-prot_c"><strong>prot_c</strong></a>(self)</dt><dd><tt>Set&nbsp;up&nbsp;data&nbsp;connection&nbsp;in&nbsp;the&nbsp;clear.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-prot_p"><strong>prot_p</strong></a>(self)</dt><dd><tt>Set&nbsp;up&nbsp;secure&nbsp;data&nbsp;connection.</tt></dd></dl>

<hr>
Methods inherited from <a href="ftplib.html#FTP">ftplib.FTP</a>:<br>
<dl><dt><a name="IrisFTPSSL-abort"><strong>abort</strong></a>(self)</dt><dd><tt>Abort&nbsp;a&nbsp;file&nbsp;transfer.&nbsp;&nbsp;Uses&nbsp;out-of-band&nbsp;data.<br>
This&nbsp;does&nbsp;not&nbsp;follow&nbsp;the&nbsp;procedure&nbsp;from&nbsp;the&nbsp;RFC&nbsp;to&nbsp;send&nbsp;Telnet<br>
IP&nbsp;and&nbsp;Synch;&nbsp;that&nbsp;doesn't&nbsp;seem&nbsp;to&nbsp;work&nbsp;with&nbsp;the&nbsp;servers&nbsp;I've<br>
tried.&nbsp;&nbsp;Instead,&nbsp;just&nbsp;send&nbsp;the&nbsp;ABOR&nbsp;command&nbsp;as&nbsp;OOB&nbsp;data.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-acct"><strong>acct</strong></a>(self, password)</dt><dd><tt>Send&nbsp;new&nbsp;account&nbsp;name.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-close"><strong>close</strong></a>(self)</dt><dd><tt>Close&nbsp;the&nbsp;connection&nbsp;without&nbsp;assuming&nbsp;anything&nbsp;about&nbsp;it.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-debug"><strong>debug</strong></a> = set_debuglevel(self, level)</dt><dd><tt>Set&nbsp;the&nbsp;debugging&nbsp;level.<br>
The&nbsp;required&nbsp;argument&nbsp;level&nbsp;means:<br>
0:&nbsp;no&nbsp;debugging&nbsp;output&nbsp;(default)<br>
1:&nbsp;print&nbsp;commands&nbsp;and&nbsp;responses&nbsp;but&nbsp;not&nbsp;body&nbsp;text&nbsp;etc.<br>
2:&nbsp;also&nbsp;print&nbsp;raw&nbsp;lines&nbsp;read&nbsp;and&nbsp;sent&nbsp;before&nbsp;stripping&nbsp;CR/LF</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-getline"><strong>getline</strong></a>(self)</dt><dd><tt>#&nbsp;Internal:&nbsp;return&nbsp;one&nbsp;line&nbsp;from&nbsp;the&nbsp;server,&nbsp;stripping&nbsp;CRLF.<br>
#&nbsp;Raise&nbsp;EOFError&nbsp;if&nbsp;the&nbsp;connection&nbsp;is&nbsp;closed</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-getmultiline"><strong>getmultiline</strong></a>(self)</dt><dd><tt>#&nbsp;Internal:&nbsp;get&nbsp;a&nbsp;response&nbsp;from&nbsp;the&nbsp;server,&nbsp;which&nbsp;may&nbsp;possibly<br>
#&nbsp;consist&nbsp;of&nbsp;multiple&nbsp;lines.&nbsp;&nbsp;Return&nbsp;a&nbsp;single&nbsp;string&nbsp;with&nbsp;no<br>
#&nbsp;trailing&nbsp;CRLF.&nbsp;&nbsp;If&nbsp;the&nbsp;response&nbsp;consists&nbsp;of&nbsp;multiple&nbsp;lines,<br>
#&nbsp;these&nbsp;are&nbsp;separated&nbsp;by&nbsp;'\n'&nbsp;characters&nbsp;in&nbsp;the&nbsp;string</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-getresp"><strong>getresp</strong></a>(self)</dt><dd><tt>#&nbsp;Internal:&nbsp;get&nbsp;a&nbsp;response&nbsp;from&nbsp;the&nbsp;server.<br>
#&nbsp;Raise&nbsp;various&nbsp;errors&nbsp;if&nbsp;the&nbsp;response&nbsp;indicates&nbsp;an&nbsp;error</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-getwelcome"><strong>getwelcome</strong></a>(self)</dt><dd><tt>Get&nbsp;the&nbsp;welcome&nbsp;message&nbsp;from&nbsp;the&nbsp;server.<br>
(this&nbsp;is&nbsp;read&nbsp;and&nbsp;squirreled&nbsp;away&nbsp;by&nbsp;<a href="#IrisFTPSSL-connect">connect</a>())</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-login"><strong>login</strong></a>(self, user<font color="#909090">=''</font>, passwd<font color="#909090">=''</font>, acct<font color="#909090">=''</font>)</dt><dd><tt>Login,&nbsp;default&nbsp;anonymous.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-makepasv"><strong>makepasv</strong></a>(self)</dt></dl>

<dl><dt><a name="IrisFTPSSL-makeport"><strong>makeport</strong></a>(self)</dt><dd><tt>Create&nbsp;a&nbsp;new&nbsp;socket&nbsp;and&nbsp;send&nbsp;a&nbsp;PORT&nbsp;command&nbsp;for&nbsp;it.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-mkd"><strong>mkd</strong></a>(self, dirname)</dt><dd><tt>Make&nbsp;a&nbsp;directory,&nbsp;return&nbsp;its&nbsp;full&nbsp;pathname.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-nlst"><strong>nlst</strong></a>(self, *args)</dt><dd><tt>Return&nbsp;a&nbsp;list&nbsp;of&nbsp;files&nbsp;in&nbsp;a&nbsp;given&nbsp;directory&nbsp;(default&nbsp;the&nbsp;current).</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-putcmd"><strong>putcmd</strong></a>(self, line)</dt><dd><tt>#&nbsp;Internal:&nbsp;send&nbsp;one&nbsp;command&nbsp;to&nbsp;the&nbsp;server&nbsp;(through&nbsp;<a href="#IrisFTPSSL-putline">putline</a>())</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-putline"><strong>putline</strong></a>(self, line)</dt><dd><tt>#&nbsp;Internal:&nbsp;send&nbsp;one&nbsp;line&nbsp;to&nbsp;the&nbsp;server,&nbsp;appending&nbsp;CRLF</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-pwd"><strong>pwd</strong></a>(self)</dt><dd><tt>Return&nbsp;current&nbsp;working&nbsp;directory.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-quit"><strong>quit</strong></a>(self)</dt><dd><tt>Quit,&nbsp;and&nbsp;close&nbsp;the&nbsp;connection.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-rename"><strong>rename</strong></a>(self, fromname, toname)</dt><dd><tt>Rename&nbsp;a&nbsp;file.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-retrbinary"><strong>retrbinary</strong></a>(self, cmd, callback, blocksize<font color="#909090">=8192</font>, rest<font color="#909090">=None</font>)</dt><dd><tt>Retrieve&nbsp;data&nbsp;in&nbsp;binary&nbsp;mode.<br>
&nbsp;<br>
`cmd'&nbsp;is&nbsp;a&nbsp;RETR&nbsp;command.&nbsp;&nbsp;`callback'&nbsp;is&nbsp;a&nbsp;callback&nbsp;function&nbsp;is<br>
called&nbsp;for&nbsp;each&nbsp;block.&nbsp;&nbsp;No&nbsp;more&nbsp;than&nbsp;`blocksize'&nbsp;number&nbsp;of<br>
bytes&nbsp;will&nbsp;be&nbsp;read&nbsp;from&nbsp;the&nbsp;socket.&nbsp;&nbsp;Optional&nbsp;`rest'&nbsp;is&nbsp;passed<br>
to&nbsp;<a href="#IrisFTPSSL-transfercmd">transfercmd</a>().<br>
&nbsp;<br>
A&nbsp;new&nbsp;port&nbsp;is&nbsp;created&nbsp;for&nbsp;you.&nbsp;&nbsp;Return&nbsp;the&nbsp;response&nbsp;code.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-retrlines"><strong>retrlines</strong></a>(self, cmd, callback<font color="#909090">=None</font>)</dt><dd><tt>Retrieve&nbsp;data&nbsp;in&nbsp;line&nbsp;mode.<br>
The&nbsp;argument&nbsp;is&nbsp;a&nbsp;RETR&nbsp;or&nbsp;LIST&nbsp;command.<br>
The&nbsp;callback&nbsp;function&nbsp;(2nd&nbsp;argument)&nbsp;is&nbsp;called&nbsp;for&nbsp;each&nbsp;line,<br>
with&nbsp;trailing&nbsp;CRLF&nbsp;stripped.&nbsp;&nbsp;This&nbsp;creates&nbsp;a&nbsp;new&nbsp;port&nbsp;for&nbsp;you.<br>
print_line()&nbsp;is&nbsp;the&nbsp;default&nbsp;callback.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-rmd"><strong>rmd</strong></a>(self, dirname)</dt><dd><tt>Remove&nbsp;a&nbsp;directory.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-sanitize"><strong>sanitize</strong></a>(self, s)</dt><dd><tt>#&nbsp;Internal:&nbsp;"sanitize"&nbsp;a&nbsp;string&nbsp;for&nbsp;printing</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-sendcmd"><strong>sendcmd</strong></a>(self, cmd)</dt><dd><tt>Send&nbsp;a&nbsp;command&nbsp;and&nbsp;return&nbsp;the&nbsp;response.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-sendeprt"><strong>sendeprt</strong></a>(self, host, port)</dt><dd><tt>Send&nbsp;a&nbsp;EPRT&nbsp;command&nbsp;with&nbsp;the&nbsp;current&nbsp;host&nbsp;and&nbsp;the&nbsp;given&nbsp;port&nbsp;number.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-sendport"><strong>sendport</strong></a>(self, host, port)</dt><dd><tt>Send&nbsp;a&nbsp;PORT&nbsp;command&nbsp;with&nbsp;the&nbsp;current&nbsp;host&nbsp;and&nbsp;the&nbsp;given<br>
port&nbsp;number.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-set_debuglevel"><strong>set_debuglevel</strong></a>(self, level)</dt><dd><tt>Set&nbsp;the&nbsp;debugging&nbsp;level.<br>
The&nbsp;required&nbsp;argument&nbsp;level&nbsp;means:<br>
0:&nbsp;no&nbsp;debugging&nbsp;output&nbsp;(default)<br>
1:&nbsp;print&nbsp;commands&nbsp;and&nbsp;responses&nbsp;but&nbsp;not&nbsp;body&nbsp;text&nbsp;etc.<br>
2:&nbsp;also&nbsp;print&nbsp;raw&nbsp;lines&nbsp;read&nbsp;and&nbsp;sent&nbsp;before&nbsp;stripping&nbsp;CR/LF</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-set_pasv"><strong>set_pasv</strong></a>(self, val)</dt><dd><tt>Use&nbsp;passive&nbsp;or&nbsp;active&nbsp;mode&nbsp;for&nbsp;data&nbsp;transfers.<br>
With&nbsp;a&nbsp;false&nbsp;argument,&nbsp;use&nbsp;the&nbsp;normal&nbsp;PORT&nbsp;mode,<br>
With&nbsp;a&nbsp;true&nbsp;argument,&nbsp;use&nbsp;the&nbsp;PASV&nbsp;command.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-storbinary"><strong>storbinary</strong></a>(self, cmd, fp, blocksize<font color="#909090">=8192</font>)</dt><dd><tt>Store&nbsp;a&nbsp;file&nbsp;in&nbsp;binary&nbsp;mode.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-storlines"><strong>storlines</strong></a>(self, cmd, fp)</dt><dd><tt>Store&nbsp;a&nbsp;file&nbsp;in&nbsp;line&nbsp;mode.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-transfercmd"><strong>transfercmd</strong></a>(self, cmd, rest<font color="#909090">=None</font>)</dt><dd><tt>Like&nbsp;<a href="#IrisFTPSSL-ntransfercmd">ntransfercmd</a>()&nbsp;but&nbsp;returns&nbsp;only&nbsp;the&nbsp;socket.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-voidcmd"><strong>voidcmd</strong></a>(self, cmd)</dt><dd><tt>Send&nbsp;a&nbsp;command&nbsp;and&nbsp;expect&nbsp;a&nbsp;response&nbsp;beginning&nbsp;with&nbsp;'2'.</tt></dd></dl>

<dl><dt><a name="IrisFTPSSL-voidresp"><strong>voidresp</strong></a>(self)</dt><dd><tt>Expect&nbsp;a&nbsp;response&nbsp;beginning&nbsp;with&nbsp;'2'.</tt></dd></dl>

<hr>
Data and other attributes inherited from <a href="ftplib.html#FTP">ftplib.FTP</a>:<br>
<dl><dt><strong>debugging</strong> = 0</dl>

<dl><dt><strong>file</strong> = None</dl>

<dl><dt><strong>passiveserver</strong> = 1</dl>

<dl><dt><strong>sock</strong> = None</dl>

</td></tr></table></td></tr></table>
</body></html>